// 通知相关所有接口数据
import request from '/@/utils/request';
import qs from 'qs'

/**
 * 已发送短信列表
 * @param params 要传的查询参数值
 * @returns 返回接口数据
 */
export function historyList(params: any) {
	let paramsQuery: any = params;
	paramsQuery.page = params.pageNum;
	paramsQuery.size = params.pageSize;
	return request({
		url: '/history/list',
		method: 'post',
		data: params,
	});
}

// 充值记录
export function smsRechargeOrderList(params: any){
	const paramsQuery = Object.assign({}, params, {  
		current: params.pageNum,
		size: params.pageSize,
	});  
	delete paramsQuery.pageNum;
	delete paramsQuery.pageSize;
	return request({
		url: '/sms/order/query',
		method: 'GET',
		data: qs.stringify(paramsQuery)
	});
}
